<?php

namespace App\Http\Controllers\Admin;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use DB;
use App\Models\Money;
class MoneyController extends Controller
{
    
    //ajax返回index
    public function ajaxIndex()
    {
        $model_list = new Money();
        $pageDate = $model_list->ajaxIndex();
        return json_encode($pageDate, true);
    }
    
    //支出明细
    public function index()
    {
      return view('admin.money.list');
    }
    
    //ajax返回薪资明细
    public  function  ajaxPrice()
    {
        $model_price = new Money();
        $pageDate = $model_price->ajaxPrice();
        return json_encode($pageDate, true);
    }
    
    
    //薪资明细
    public function price()
    {
        return view('admin.money.price');
        
    }
    
    //公共薪酬明细
    public function common()
    {
      
          return view('admin.money.common');
    }
    
}
